// it's just api for login/logout/refreshtoken...
import request from '@/utils/request/index.js'

/**
 * 充值支付
 * @param {Object} data
 */
export function on_payment(data) {
	return request.request({
		url: 'api/benwei/on_payment',
		method: 'POST',
		data: data
	})
}

/**
 * 获取充值记录
 * @param {Object} data
 */
export function get_history(data) {
	return request.request({
		url: 'api/benwei/get_history',
		method: 'POST',
		data: data
	})
}

/**
 * 获取充值记录
 * @param {Object} data
 */
export function get_client(data) {
	return request.request({
		url: 'api/benwei/get_client',
		method: 'POST',
		data: data
	})
}


/**
 * 获取优惠券
 * @param {Object} data
 */
export function get_coupon(data) {
	return request.request({
		url: 'api/benwei/get_coupon',
		method: 'POST',
		data: data
	})
}

/**
 * 获取优惠券
 * @param {Object} data
 */
export function get_user_money(data) {
	return request.request({
		url: 'api/benwei/get_user_money',
		method: 'POST',
		data: data
	})
}


/**
 * 获取优惠券
 * @param {Object} data
 */
export function on_settle_accounts(data) {
	return request.request({
		url: 'api/benwei/on_settle_accounts',
		method: 'POST',
		data: data
	})
}


/**
 * 获取配置
 * @param {Object} data
 */
export function get_config() {
	return request.request({
		url: 'api/benwei/get_config',
		method: 'GET'
	})
}
